﻿@using NetCoreCMS.Models;
@using NetCoreCMS.Common;
@{
    Layout = "~/Areas/admin/Views/Shared/_LayoutEdit.cshtml";
    ViewBag.Title = "编辑定时任务";
    Task_info m = ViewData["model"] as Task_info;
    List<SelectListItem> siteSelectItems = ViewData["siteSelectItems"] as List<SelectListItem>;
}
@section Scripts{
    <script>
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
        });
    </script>
}
<form id="form1" method="post" action="SubmitSave?action=@ViewBag.Action&id=@ViewBag.Id">
    <!--导航栏-->
    <div class="location">
        <a href="../taskinfo_edit/index" class="back"><i class="iconfont icon-up"></i><span>返回列表页</span></a>
        <a href="../center/index" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>插件管理</span>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>任务管理</span>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>编辑任务</span>
        <div class="clipboard">
            <span><label id="clipMess"></label></span>
            <a href="javascript:;" class="copy" onclick="copy();"><i class="iconfont icon-copy"></i><span>复制</span></a>
            <a href="javascript:;" class="paste disable" onclick="paste();"><i class="iconfont icon-log"></i><span>粘贴</span></a>
        </div>
    </div>
    <div class="line10"></div>
    <!--/导航栏-->
    <!--内容-->
    <div id="floatHead" class="content-tab-wrap">
        <div class="content-tab">
            <div class="content-tab-ul-wrap">
                <ul>
                    <li><a class="selected" href="javascript:;">编辑任务</a></li>
                </ul>
            </div>
        </div>
    </div>

    <div class="tab-content">
        <dl>
            <dt>任务名称</dt>
            <dd>@Html.TextBox("txtName", m.name, new { @class = "input normal", datatype = "*2-100", sucmsg = "任务别名不能有特殊字符不能重" })</dd>
        </dl>
        <dl>
            <dt>分组名称</dt>
            <dd>@Html.TextBox("txtGroup", m.group, new { @class = "input normal", datatype = "*", sucmsg = " " })</dd>
        </dl>
        <dl>
            <dt>程序集路径</dt>
            <dd>@Html.TextBox("txtAssembly", m.assembly, new { @class = "input normal", datatype = "*", sucmsg = " " })</dd>
        </dl>
        <dl>
            <dt>完整类名</dt>
            <dd>@Html.TextBox("txtClassName", m.className, new { @class = "input normal", datatype = "*", sucmsg = " " })</dd>
        </dl>
        <dl>
            <dt>Cron表达式</dt>
            <dd>@Html.TextBox("txtCron", m.cron, new { @class = "input normal", datatype = "*", sucmsg = "调度时间生成地址 http://cron.qqe2.com" })</dd>
        </dl>
        <dl>
            <dt>备注</dt>
            <dd>@Html.TextBox("txtDescription", m.description, new { @class = "input normal", datatype = "*", sucmsg = " " })</dd>
        </dl>        
        <dl>
            <dt>排序数字</dt>
            <dd>
                @Html.TextBox("txtSortId", m.sort_id, new { @class = "input small", datatype = "n", sucmsg = " " })
                <span class="Validform_checktip">*数字，越小越向前</span>
            </dd>
        </dl>


    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <input type="submit" id="btnSubmit" class="btn" value="提交保存" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
        </div>
    </div>
    <!--/工具栏-->
</form>
